<% remote_form_for @plan_horario,:complete =>"$.colorbox.close()", :condition => '$(this).valid()', :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box">
    <%= f.text_field :inicio, {:class=>'dp',:size=>'15px'} %>
    <%= f.text_field :fin, {:class=>'dp',:value=>'',:size=>'15px'}%>
    <%= f.hidden_field :usuario_id%>
    <%= f.collection_select :grupo_horario_id, GrupoHorario.all, :id,:nombre %>
  </div>
  <%= f.submit "Guardar" %>
<% end %>
<%= validate_forms %>
<%= format_date_fields %>